package com.youle.askdao.common.result;

/**
 * @author: create by MrGe
 * @version: v1.0
 * @description: cmcc.iot.onenet.lightbox.util.common
 * @date:2018/11/16
 */
public enum ErrorCodeEnum {
    /*用户的错误码 1*/
    USERMANAGE_USERNOTLOGIN("10001", "用户未登录!"),
    USERMANAGE_UPDATEUSER("10002", "更改用户资料失败，请联系管理员!"),
    USERMANAGE_USERNOTFIND("10003", "没有找到此用户!"),
    USERMANAGE_PASSWORDERROR("10004", "密码错误"),
    USERMANAGE_NOLOWERUSER("10005", "没有下级渠道商,请邀请注册"),
    USERMANAGE_INVITECODEERROR("10010", "邀请码错误"),
    USERMANAGE_USERCODEISUSED("10011", "账号已经被注册"),
    USERMANAGE_PHONEISUSED("10012", "手机号已被注册"),
    USERMANAGE_CREADITCODEISUSED("10013", "信用社号已被注册"),
    USERMANAGE_PASSWORDNOTREP("10014", "两次输入的密码不一致"),
    USERMANAGE_USERCODENOTLEG("10015", "用户名格式不对"),
    USERMANAGE_PHONENOTLEG("10016", "手机号格式不对"),
    USERMANAGE_ADDUSERERROR("10017", "添加用户失败，请联系管理员"),
    USERMANAGE_LOGINFAILE("10020", "登陆失败，请检查账号状态!"),
    USERMANAGE_PASSWORDNOTLEG("10021", "密码格式错误!"),
    USERMANAGE_PASSWORDNOTEQULE("10022", "原密码错误!"),
    USERMANAGE_CREDICODENOTLEG("10023", "信用社号格式不正确"),
    USERMANAGE_CHANNELCODEISUSED("10024", "渠道商号已被注册"),
    USERMANAGE_CHANNELCODENOTLEG("10024", "渠道商号格式不正确"),
    USERMANAGE_EMAILNOTLEG("10025", "邮箱格式不正确"),
    USERMANAGE_PHONEINPUTERROR("10026", "手机号输入错误"),
    USERMANAGE_PHONEONETREP("10027", "两次输入的手机号不一致"),
    USERMANAGE_GETPHONECODEAGEN("10028", "60秒内不能重复获取短信验证码！"),
    USERMANAGE_USERLOCKD("10029", "您当前密码已经错误5次，账号已被锁定"),
    USERMANAGE_TPYZMERROR("10030", "图片验证码错误或已失效!"),

    /*公共-权限-错误码*/
    PERMISSION_NOPERM("20001", "您没有访问此资源的权限"),
    PERMISSION_ADDPERMERROR("20002", "添加失败，请联系管理员！"),
    PERMISSION_UPDATEPERMERROR("20003", "修改失败，请联系管理员!"),
    PERMISSION_DELETEERROR("20004", "删除失败，请联系管理员！"),
    PERMISSION_NOTFINDERROR("20005", "没有找到相应的数据!"),
    PERMISSION_CANSHUERROE("20006", "参数有错误"),
    PERMISSION_ADDHOMEPERMERROR("20007", "该角色在设置查看首页权限时出错，请联系管理员"),
    PERMISSION_ROLELEVELHIGH("20008", "权限设置失败，您角色的等级小于该角色"),
    PERMISSION_NOTFOUNDROLE("20009", "没有找到该角色信息"),
    PEMMISSION_CODEISHAVE("20010", "此编码已经存在，请重新输入编码"),
    PEMMISSION_NOROLEERROR("20011", "该账号没有角色，请联系管理员处理"),

    /*工具管理 3*/
    PHONECODE_NOTEQUALES("30001", "手机验证码不正确，请重新输入。"),
    FILE_FILETYPEERROR("30002", "文件类型错误"),
    FILE_UPLOADERROR("30003", "文件上传失败。"),
    FILE_EXISTERROR("30004", "已经存在相同的文件，请勿重复提交"),
    FILE_FILENOTFIND("30005", "没有找到该文件，请确认。"),
    FILE_DOWNLOADERROR("30003", "文件下载失败。"),
    FILE_NOUPLOADERROR("30003", "未上传分销合同，不能获取邀请码!"),
    /*flow系统
    * 错误码400001已使用
    **/
    FLOW_EXCELISNULL("40001", "文件名或内容为空"),
    FLOW_EXCELISNOT("40002", "文件不是excel"),
    FLOW_CARDNOTFIND("40004", "未查询到该物联网卡"),
    FLOW_RULESNOTFIND("40005", "请创建一条预警规则"),
    FLOW_CARDISERROR("40006", "卡号有误或卡状态不是未划拨"),
    FLOW_ICCIDISERROR("40007", "iccid有误或卡状态不是未划拨"),
    FLOW_NOCARDS("40008", "请添加物联网卡"),
    FLOW_NUMBERBEYOND("40009", "物联网卡数量已超出"),
    FLOW_NODATAINEXCEL("40010", "请在模版中添加数据"),
    FLOW_NOALLOCATEFLOWPOOL("40011", "没有可以划拨的流量池"),
    FLOW_DATAFORMATEERROR("40012", "卡号或ICCID只能为数字，请重新输入"),
    FLOW_NOTFOUNDCHANNEL("40013", "未找到下级渠道商"),
    FLOW_CARDNOTUNIQUE("40014", "添加的卡必须是同一批次的卡，采购资费信息应该相同"),
    FLOW_PRICEERROR("40015", "目录价不能小于采购价"),
    FLOW_REBATENOTGREATERTHANPURCHASE("40016", "返利单价不可大于采购价"),
    FLOW_NOALLOCATECARD("40017", "没有可以划拨的物联网卡"),
    FLOW_ALLOCATENUMBERBEYOND("40018", "划拨或修改的数量已经超出原数量"),
    FLOW_CARDSLESSTHAN100("40019", "组合流量池的物联网卡数量不能小于100张"),
    FLOW_SPLITCARDSLESSTHAN100("40020", "拆分后流量池的物联网卡数量不能小于100张"),
    FLOW_FEEINFORMATION("40021", "上传的物联网卡只能是同一种资费套餐"),
    FLOW_CATALOGUEPRICENOTEQUAL("40022", "上传失败，市场价与原流量池市场价不相同"),
    FLOW_PURCHASENOTEQUAL("40023", "上传失败，采购价与原流量池采购价不相同"),
    FLOW_PROVINCENOTEQUAL("40024", "上传失败，省份与原流量池省份不相同"),
    FLOW_ONLYADMINADDMEMBER("40025", "上传失败，只有渠道商才能添加成员"),
    FLOW_ONLYUNSTRAFERADDMEMBER("40026", "上传失败，必须是未划拨状态才能添加成员"),
    FLOW_PROHIBITALLOCATEWARN("40027", "已划拨后不可设置预警"),
    FLOW_UPLOADINGEXCEL("40028", "文件正在上传中，请上传结束后再执行其他上传指令"),

    /*系统公告*/
    NOTICE_ADDERROR("50001", "系统公告编写失败，请联系管理员！"),
    NOTICE_DELERROR("50002", "系统公告删除失败，请联系管理员！"),

    /*预警管理*/
    WARN_CARDDEL("60001","存在已被删除的卡，无法进行绑定"),
    WARN_POOLDEL("60002","存在已被删除的流量池，无法进行绑定"),
    /*common*/
    COMMON_CHANNELNOTFIND("90001", "未选中或参数错误"),
    COMMON_OPERATIONFAILED("90002", "操作失败"),
    COMMON_PARAMETERERROR("90003", "参数错误或参数为空"),
    COMMON_TIMEERROR("90004", "开始或结束时间错误"),
    COMMON_INTERFACEERROR("90005", "查询卡数据失败，请联系管理员"),
    COMMON_INTERFACEDATAERROR("90006", "查询卡数据失败，请检查上传的卡数据是否有误"),
    COMMON_SEQUENCEERROR("90007", "序列号创建失败，请重试"),
    COMMON_ACCOUNTOPERATIONFAILED("90008", "操作失败,结算数量已经超过最大数量，请核实"),
    COMMON_THREEPARAMETERERROR("90009", "套餐信息或采购价或目录价不能为空"),
    COMMON_THREEPARAMETERNOTEQUAL("90010", "套餐信息或采购价或目录价不相同，不能创建流量池"),
    COMMON_BUSYSERVICE("90011", "服务器繁忙，请稍后再试！"),;


    private String errorCode;
    private String msg;

    ErrorCodeEnum(String errorCode, String msg) {
        this.errorCode = errorCode;
        this.msg = msg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
